package net.khoroshev.wschat.model.entity;

import net.khoroshev.wschat.service.auth.Authorities;
import org.springframework.security.core.GrantedAuthority;

/**
 * Package: net.khoroshev.wschat.model.entity
 * <p/>
 * Created by: vfirstov
 * Date: 09.11.2013  Time: 16:44:37
 */

public class UserAuthority extends Entity implements GrantedAuthority {

    String authority;

    public UserAuthority(final String authority) {
        this.authority = authority;
    }

    public UserAuthority(final Long id,
                         final String authority) {
        this.authority = authority;
        setId(id);
    }

    public String getAuthority() {
        return authority;
    }

    public void setAuthority(final String authority) {
        this.authority = authority;
    }
}
